package com.teamcenter.rac.massupdate.ui;

import org.eclipse.core.databinding.Binding;
import org.eclipse.core.databinding.DataBindingContext;
import org.eclipse.core.databinding.UpdateValueStrategy;
import org.eclipse.core.databinding.beans.BeansObservables;
import org.eclipse.core.databinding.observable.value.IObservableValue;
import org.eclipse.jface.databinding.swt.ISWTObservableValue;
import org.eclipse.jface.databinding.swt.SWTObservables;
import org.eclipse.jface.resource.JFaceResources;
import org.eclipse.jface.wizard.IWizardContainer;
import org.eclipse.swt.custom.ScrolledComposite;
import org.eclipse.swt.events.KeyAdapter;
import org.eclipse.swt.events.KeyEvent;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.graphics.FontData;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.eclipse.wb.swt.SWTResourceManager;

import com.teamcenter.rac.massupdate.converters.ImageDescriptor2SizedImageConverter;
import com.teamcenter.rac.massupdate.converters.InvertBooleanConverter;
import com.teamcenter.rac.massupdate.converters.ObjectNotNull2BooleanConverter;
import com.teamcenter.rac.massupdate.converters.ObjectNull2BooleanConverter;
import com.teamcenter.rac.massupdate.converters.OperationIndex2OperationTypeConverter;
import com.teamcenter.rac.massupdate.converters.OperationType2DescriptionConverter;
import com.teamcenter.rac.massupdate.converters.OperationType2OperationIndexConverter;
import com.teamcenter.rac.massupdate.converters.Source2DescriptionConverter;
import com.teamcenter.rac.massupdate.converters.Source2LabelConverter;
import com.teamcenter.rac.massupdate.databinding.AbstractModelObservable;
import com.teamcenter.rac.massupdate.databinding.ChangeObjectChangeObservable;
import com.teamcenter.rac.massupdate.databinding.FindChangeItemRevObservable;
import com.teamcenter.rac.massupdate.databinding.FindReplacementItemRevObservable;
import com.teamcenter.rac.massupdate.databinding.FindTargetItemRevObservable;
import com.teamcenter.rac.massupdate.databinding.OperationTypeChangeObservable;
import com.teamcenter.rac.massupdate.databinding.ReplacementPartChangeObservable;
import com.teamcenter.rac.massupdate.databinding.TargetPartChangeObservable;
import com.teamcenter.rac.massupdate.databinding.UpdateBindingModelToTargetChangeObservable;
import com.teamcenter.rac.massupdate.databinding.UpdateLayoutObservable;
import com.teamcenter.rac.massupdate.model.UpdateJobModel;
import com.teamcenter.rac.massupdate.validators.ChangeItemValidator;
import com.teamcenter.rac.massupdate.validators.MarkupExistsValidator;
import com.teamcenter.rac.massupdate.validators.OperationTypeValidator;
import com.teamcenter.rac.massupdate.validators.ReplacementPartValidator;
import com.teamcenter.rac.ui.commands.validators.ValidateIsObjectNotNull;

public class WizardTargetPage2 extends AbstractBindingWizardPage {
	private ChangeObjectChangeObservable m_changeChangeObservable = new ChangeObjectChangeObservable();
	private Button m_changeClearButton;
	private Text m_changeDescriptionText;
	private Button m_changeFindButton;
	private Text m_changeFindText;
	private Binding m_changeFindTextBinding;
	private Composite m_changeGroupComposite;
	private Composite m_changeInfoComposite;
	private Label m_changeLabelLabel;
	private FindChangeItemRevObservable m_findChangeItemRevObservable = new FindChangeItemRevObservable();
	private FindReplacementItemRevObservable m_findReplacementItemRevObservable = new FindReplacementItemRevObservable();
	private FindTargetItemRevObservable m_findTargetItemRevObservable = new FindTargetItemRevObservable();
	private Label m_inputLabelText;
	private IC_MarkupAllowedChangeObservable m_markupAllowedObservable = new IC_MarkupAllowedChangeObservable();
	private Combo m_operationCombo;
	private Text m_operationDetailsText;
	private Composite m_operationGroup;
	private OperationTypeChangeObservable m_operationTypeChangeObservable = new OperationTypeChangeObservable();
	private Button m_replacementAddToOtherButton;
	private Button m_replacementAddToSolutionButton;
	private ReplacementPartChangeObservable m_replacementChangeObservable = new ReplacementPartChangeObservable();
	private Text m_replacementDescriptionText;
	private Button m_replacementFindButton;
	private Text m_replacementFindText;
	private Binding m_replacementFindTextBinding;
	private Composite m_replacementGroup;
	private Composite m_replacementImageComposite;
	private Label m_replacementImageLabel;
	private UpdateLayoutObservable m_replacementImageUpdateLayoutObserver = new UpdateLayoutObservable();
	private Composite m_replacementInfoComposite;
	private Label m_replacementLabelLabel;
	private Binding m_replacementPartChangeBinding;
	private UpdateBindingModelToTargetChangeObservable m_replacementRequiredChangeObserver = new UpdateBindingModelToTargetChangeObservable();
	private Button m_targetAddToOtherFolderButton;
	private Button m_targetAddToProblemFolderButton;
	private TargetPartChangeObservable m_targetChangeObserver = new TargetPartChangeObservable();
	private Text m_targetDescriptionText;
	private Button m_targetFindButton;
	private Text m_targetFindText;
	private Binding m_targetFindTextBinding;
	private Composite m_targetGroup;
	private Composite m_targetImageComposite;
	private Label m_targetImageLabel;
	private UpdateLayoutObservable m_targetImageUpdateLayoutObserver = new UpdateLayoutObservable();
	private Composite m_targetInfoComposite;
	private Label m_targetLabelLabel;
	private UpdateJobModel m_updateJobModel;

	public WizardTargetPage2(UpdateJobModel paramUpdateJobModel) {
		super(Messages.TargetPage_PageName, paramUpdateJobModel);
		setTitle(Messages.TargetPage_PageTitle);
		setMessage(Messages.TargetPage_PageMessage);
		setDescription(Messages.TargetPage_PageDescription);
		this.m_updateJobModel = paramUpdateJobModel;
		this.m_operationTypeChangeObservable.setUpdateJobModel(paramUpdateJobModel);
		this.m_targetChangeObserver.setUpdateJobModel(paramUpdateJobModel);
		this.m_replacementChangeObservable.setUpdateJobModel(paramUpdateJobModel);
		this.m_changeChangeObservable.setUpdateJobModel(paramUpdateJobModel);
	}

	public boolean canFlipToNextPage() {
		Object localObject = this.m_observeValidationState.getValue();
		if ((localObject instanceof Boolean)) {
			return ((Boolean) localObject).booleanValue();
		}
		return false;
	}

	public boolean canManageMarkup() {
		return !this.m_updateJobModel.isMarkupAllowed();
	}

	public void createControl(Composite paramComposite) {
		Composite localComposite = new Composite(paramComposite, 0);
		setControl(localComposite);
		GridLayout localGridLayout = new GridLayout(1, false);
		localGridLayout.verticalSpacing = 0;
		localGridLayout.marginWidth = 0;
		localGridLayout.marginHeight = 0;
		localGridLayout.horizontalSpacing = 0;
		localComposite.setLayout(localGridLayout);
		contributeOperation(localComposite);
		contributeTarget(localComposite);
		contributeReplacement(localComposite);
		contributeChangeItem(localComposite);
		this.m_bindingContext = initDataBindings();
		this.m_targetImageUpdateLayoutObserver.setCompositeToUpdate(this.m_targetImageComposite);
		new Label(this.m_targetImageComposite, 0);
		this.m_replacementImageUpdateLayoutObserver.setCompositeToUpdate(this.m_replacementImageComposite);
		this.m_replacementRequiredChangeObserver.setBindingToUpdate(this.m_replacementPartChangeBinding);
		this.m_findChangeItemRevObservable.setUpdateJobModel(this.m_updateJobModel);
		this.m_findChangeItemRevObservable.setWizardPage(this);
		this.m_findChangeItemRevObservable.setBinding(this.m_changeFindTextBinding);
		this.m_findReplacementItemRevObservable.setUpdateJobModel(this.m_updateJobModel);
		this.m_findReplacementItemRevObservable.setWizardPage(this);
		this.m_findReplacementItemRevObservable.setBinding(this.m_replacementFindTextBinding);
		this.m_findTargetItemRevObservable.setUpdateJobModel(this.m_updateJobModel);
		this.m_findTargetItemRevObservable.setWizardPage(this);
		this.m_findTargetItemRevObservable.setBinding(this.m_targetFindTextBinding);
		setupAggregateValidationStatus();
		initCommonDataBindings(this.m_bindingContext);
		this.m_bindingContext.updateTargets();
	}

	protected DataBindingContext initDataBindings() {
		DataBindingContext localDataBindingContext = new DataBindingContext();
		ISWTObservableValue localISWTObservableValue1 = SWTObservables.observeText(this.m_changeLabelLabel);
		IObservableValue localIObservableValue1 = BeansObservables.observeValue(this.m_updateJobModel, "changeObject");
		UpdateValueStrategy localUpdateValueStrategy1 = new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER);
		UpdateValueStrategy localUpdateValueStrategy2 = new UpdateValueStrategy();
		localUpdateValueStrategy2.setConverter(new Source2LabelConverter());
		localUpdateValueStrategy2.setAfterGetValidator(new MarkupExistsValidator(this.m_updateJobModel));
		localDataBindingContext.bindValue(localISWTObservableValue1, localIObservableValue1, localUpdateValueStrategy1,
				localUpdateValueStrategy2);
		ISWTObservableValue localISWTObservableValue2 = SWTObservables.observeText(this.m_changeDescriptionText, 24);
		UpdateValueStrategy localUpdateValueStrategy3 = new UpdateValueStrategy();
		localUpdateValueStrategy3.setConverter(new Source2DescriptionConverter());
		localDataBindingContext.bindValue(localISWTObservableValue2, localIObservableValue1,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER), localUpdateValueStrategy3);
		ISWTObservableValue localISWTObservableValue3 = SWTObservables.observeText(this.m_changeFindText, 24);
		IObservableValue localIObservableValue2 = BeansObservables.observeValue(this.m_updateJobModel,
				"changeFindText");
		this.m_changeFindTextBinding = localDataBindingContext.bindValue(localISWTObservableValue3,
				localIObservableValue2, null, new UpdateValueStrategy(UpdateValueStrategy.POLICY_ON_REQUEST));
		UpdateValueStrategy localUpdateValueStrategy4 = new UpdateValueStrategy();
		localDataBindingContext.bindValue(this.m_changeChangeObservable, localIObservableValue1, null,
				localUpdateValueStrategy4);
		ISWTObservableValue localISWTObservableValue4 = SWTObservables.observeEnabled(this.m_changeFindText);
		IObservableValue localIObservableValue3 = BeansObservables.observeValue(this.m_updateJobModel, "addToMarkup");
		UpdateValueStrategy localUpdateValueStrategy5 = new UpdateValueStrategy();
		localUpdateValueStrategy5.setConverter(new InvertBooleanConverter());
		localDataBindingContext.bindValue(localISWTObservableValue4, localIObservableValue3,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER), localUpdateValueStrategy5);
		ISWTObservableValue localISWTObservableValue5 = SWTObservables.observeEnabled(this.m_changeFindButton);
		UpdateValueStrategy localUpdateValueStrategy6 = new UpdateValueStrategy();
		localUpdateValueStrategy6.setConverter(new InvertBooleanConverter());
		localDataBindingContext.bindValue(localISWTObservableValue5, localIObservableValue3,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER), localUpdateValueStrategy6);
		ISWTObservableValue localISWTObservableValue6 = SWTObservables.observeEnabled(this.m_changeClearButton);
		UpdateValueStrategy localUpdateValueStrategy7 = new UpdateValueStrategy();
		localUpdateValueStrategy7.setConverter(new InvertBooleanConverter());
		localDataBindingContext.bindValue(localISWTObservableValue6, localIObservableValue3,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER), localUpdateValueStrategy7);
		ISWTObservableValue localISWTObservableValue7 = SWTObservables.observeVisible(this.m_changeGroupComposite);
		IObservableValue localIObservableValue4 = BeansObservables.observeValue(this.m_updateJobModel,
				"changeSupported");
		localDataBindingContext.bindValue(localISWTObservableValue7, localIObservableValue4,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER), null);
		ISWTObservableValue localISWTObservableValue8 = SWTObservables.observeTooltipText(this.m_changeInfoComposite);
		UpdateValueStrategy localUpdateValueStrategy8 = new UpdateValueStrategy();
		localUpdateValueStrategy8.setConverter(new Source2LabelConverter());
		localUpdateValueStrategy8.setAfterGetValidator(new ChangeItemValidator());
		localDataBindingContext.bindValue(localISWTObservableValue8, localIObservableValue1, null,
				localUpdateValueStrategy8);
		ISWTObservableValue localISWTObservableValue9 = SWTObservables
				.observeSingleSelectionIndex(this.m_operationCombo);
		IObservableValue localIObservableValue5 = BeansObservables.observeValue(this.m_updateJobModel, "operationType");
		UpdateValueStrategy localUpdateValueStrategy9 = new UpdateValueStrategy();
		localUpdateValueStrategy9.setConverter(new OperationIndex2OperationTypeConverter());
		UpdateValueStrategy localUpdateValueStrategy10 = new UpdateValueStrategy();
		localUpdateValueStrategy10.setConverter(new OperationType2OperationIndexConverter());
		localUpdateValueStrategy10.setAfterConvertValidator(new OperationTypeValidator());
		localDataBindingContext.bindValue(localISWTObservableValue9, localIObservableValue5, localUpdateValueStrategy9,
				localUpdateValueStrategy10);
		ISWTObservableValue localISWTObservableValue10 = SWTObservables.observeText(this.m_operationDetailsText, 24);
		UpdateValueStrategy localUpdateValueStrategy11 = new UpdateValueStrategy();
		localUpdateValueStrategy11.setConverter(new OperationType2DescriptionConverter());
		localDataBindingContext.bindValue(localISWTObservableValue10, localIObservableValue5,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER), localUpdateValueStrategy11);
		localDataBindingContext.bindValue(this.m_operationTypeChangeObservable, localIObservableValue5, null, null);
		ISWTObservableValue localISWTObservableValue11 = SWTObservables.observeEnabled(this.m_operationCombo);
		IObservableValue localIObservableValue6 = BeansObservables.observeValue(this.m_updateJobModel, "markupAllowed");
		localDataBindingContext.bindValue(localISWTObservableValue11, localIObservableValue6,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER), null);
		ISWTObservableValue localISWTObservableValue12 = SWTObservables.observeText(this.m_targetLabelLabel);
		IObservableValue localIObservableValue7 = BeansObservables.observeValue(this.m_updateJobModel, "targetPart");
		UpdateValueStrategy localUpdateValueStrategy12 = new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER);
		UpdateValueStrategy localUpdateValueStrategy13 = new UpdateValueStrategy();
		localUpdateValueStrategy13.setConverter(new Source2LabelConverter());
		localDataBindingContext.bindValue(localISWTObservableValue12, localIObservableValue7,
				localUpdateValueStrategy12, localUpdateValueStrategy13);
		ISWTObservableValue localISWTObservableValue13 = SWTObservables.observeText(this.m_targetDescriptionText, 24);
		UpdateValueStrategy localUpdateValueStrategy14 = new UpdateValueStrategy();
		localUpdateValueStrategy14.setConverter(new Source2DescriptionConverter());
		localDataBindingContext.bindValue(localISWTObservableValue13, localIObservableValue7,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER), localUpdateValueStrategy14);
		ISWTObservableValue localISWTObservableValue14 = SWTObservables
				.observeEnabled(this.m_targetAddToProblemFolderButton);
		IObservableValue localIObservableValue8 = BeansObservables.observeValue(this.m_updateJobModel,
				"problemFolderAccessible");
		localDataBindingContext.bindValue(localISWTObservableValue14, localIObservableValue8,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER), null);
		ISWTObservableValue localISWTObservableValue15 = SWTObservables
				.observeVisible(this.m_targetAddToProblemFolderButton);
		UpdateValueStrategy localUpdateValueStrategy15 = new UpdateValueStrategy();
		localUpdateValueStrategy15.setConverter(new ObjectNotNull2BooleanConverter());
		localDataBindingContext.bindValue(localISWTObservableValue15, localIObservableValue1,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER), localUpdateValueStrategy15);
		ISWTObservableValue localISWTObservableValue16 = SWTObservables
				.observeVisible(this.m_targetAddToOtherFolderButton);
		UpdateValueStrategy localUpdateValueStrategy16 = new UpdateValueStrategy();
		localUpdateValueStrategy16.setConverter(new ObjectNull2BooleanConverter());
		localDataBindingContext.bindValue(localISWTObservableValue16, localIObservableValue1,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER), localUpdateValueStrategy16);
		ISWTObservableValue localISWTObservableValue17 = SWTObservables
				.observeSelection(this.m_targetAddToProblemFolderButton);
		IObservableValue localIObservableValue9 = BeansObservables.observeValue(this.m_updateJobModel,
				"saveTargetPartInFolder");
		localDataBindingContext.bindValue(localISWTObservableValue17, localIObservableValue9, null, null);
		ISWTObservableValue localISWTObservableValue18 = SWTObservables
				.observeSelection(this.m_targetAddToOtherFolderButton);
		localDataBindingContext.bindValue(localISWTObservableValue18, localIObservableValue9, null, null);
		ISWTObservableValue localISWTObservableValue19 = SWTObservables.observeImage(this.m_targetImageLabel);
		IObservableValue localIObservableValue10 = BeansObservables.observeValue(this.m_updateJobModel,
				"targetPartImage");
		localDataBindingContext.bindValue(localISWTObservableValue19, localIObservableValue10,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER), null);
		IObservableValue localIObservableValue11 = BeansObservables.observeValue(this.m_updateJobModel,
				"targetPartImageDescriptor");
		UpdateValueStrategy localUpdateValueStrategy17 = new UpdateValueStrategy();
		localUpdateValueStrategy17
				.setConverter(new ImageDescriptor2SizedImageConverter(this.m_updateJobModel, "targetPartImageSize"));
		localDataBindingContext.bindValue(localISWTObservableValue19, localIObservableValue11,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER), localUpdateValueStrategy17);
		ISWTObservableValue localISWTObservableValue20 = SWTObservables.observeSize(this.m_targetImageComposite);
		IObservableValue localIObservableValue12 = BeansObservables.observeValue(this.m_updateJobModel,
				"targetPartImageSize");
		localDataBindingContext.bindValue(localISWTObservableValue20, localIObservableValue12, null,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER));
		localDataBindingContext.bindValue(this.m_targetImageUpdateLayoutObserver, localIObservableValue10,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER), null);
		localDataBindingContext.bindValue(this.m_targetImageUpdateLayoutObserver, localIObservableValue11,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER), null);
		ISWTObservableValue localISWTObservableValue21 = SWTObservables.observeText(this.m_targetFindText, 24);
		IObservableValue localIObservableValue13 = BeansObservables.observeValue(this.m_updateJobModel,
				"targetFindText");
		this.m_targetFindTextBinding = localDataBindingContext.bindValue(localISWTObservableValue21,
				localIObservableValue13, null, new UpdateValueStrategy(UpdateValueStrategy.POLICY_ON_REQUEST));
		localDataBindingContext.bindValue(this.m_targetChangeObserver, localIObservableValue7, null, null);
		ISWTObservableValue localISWTObservableValue22 = SWTObservables.observeTooltipText(this.m_targetInfoComposite);
		UpdateValueStrategy localUpdateValueStrategy18 = new UpdateValueStrategy();
		localUpdateValueStrategy18.setConverter(new Source2LabelConverter());
		localUpdateValueStrategy18
				.setAfterGetValidator(new ValidateIsObjectNotNull(Messages.TargetPage_Val_TargetPartNotSet));
		localDataBindingContext.bindValue(localISWTObservableValue22, localIObservableValue7, null,
				localUpdateValueStrategy18);
		ISWTObservableValue localISWTObservableValue23 = SWTObservables.observeEnabled(this.m_targetGroup);
		localDataBindingContext.bindValue(localISWTObservableValue23, localIObservableValue6,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER), null);
		ISWTObservableValue localISWTObservableValue24 = SWTObservables.observeEnabled(this.m_targetFindText);
		localDataBindingContext.bindValue(localISWTObservableValue24, localIObservableValue6,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER), null);
		ISWTObservableValue localISWTObservableValue25 = SWTObservables.observeEnabled(this.m_targetFindButton);
		localDataBindingContext.bindValue(localISWTObservableValue25, localIObservableValue6,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER), null);
		ISWTObservableValue localISWTObservableValue26 = SWTObservables.observeText(this.m_replacementLabelLabel);
		IObservableValue localIObservableValue14 = BeansObservables.observeValue(this.m_updateJobModel,
				"replacementPart");
		UpdateValueStrategy localUpdateValueStrategy19 = new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER);
		UpdateValueStrategy localUpdateValueStrategy20 = new UpdateValueStrategy();
		localUpdateValueStrategy20.setConverter(new Source2LabelConverter());
		localDataBindingContext.bindValue(localISWTObservableValue26, localIObservableValue14,
				localUpdateValueStrategy19, localUpdateValueStrategy20);
		ISWTObservableValue localISWTObservableValue27 = SWTObservables.observeText(this.m_replacementDescriptionText,
				24);
		UpdateValueStrategy localUpdateValueStrategy21 = new UpdateValueStrategy();
		localUpdateValueStrategy21.setConverter(new Source2DescriptionConverter());
		localDataBindingContext.bindValue(localISWTObservableValue27, localIObservableValue14,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER), localUpdateValueStrategy21);
		ISWTObservableValue localISWTObservableValue28 = SWTObservables
				.observeVisible(this.m_replacementAddToSolutionButton);
		UpdateValueStrategy localUpdateValueStrategy22 = new UpdateValueStrategy();
		localUpdateValueStrategy22.setConverter(new ObjectNotNull2BooleanConverter());
		localDataBindingContext.bindValue(localISWTObservableValue28, localIObservableValue1,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER), localUpdateValueStrategy22);
		ISWTObservableValue localISWTObservableValue29 = SWTObservables
				.observeVisible(this.m_replacementAddToOtherButton);
		UpdateValueStrategy localUpdateValueStrategy23 = new UpdateValueStrategy();
		localUpdateValueStrategy23.setConverter(new ObjectNull2BooleanConverter());
		localDataBindingContext.bindValue(localISWTObservableValue29, localIObservableValue1,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER), localUpdateValueStrategy23);
		ISWTObservableValue localISWTObservableValue30 = SWTObservables
				.observeSelection(this.m_replacementAddToSolutionButton);
		IObservableValue localIObservableValue15 = BeansObservables.observeValue(this.m_updateJobModel,
				"saveReplacementPartInFolder");
		localDataBindingContext.bindValue(localISWTObservableValue30, localIObservableValue15, null, null);
		ISWTObservableValue localISWTObservableValue31 = SWTObservables
				.observeSelection(this.m_replacementAddToOtherButton);
		localDataBindingContext.bindValue(localISWTObservableValue31, localIObservableValue15, null, null);
		ISWTObservableValue localISWTObservableValue32 = SWTObservables.observeImage(this.m_replacementImageLabel);
		IObservableValue localIObservableValue16 = BeansObservables.observeValue(this.m_updateJobModel,
				"replacementPartImage");
		localDataBindingContext.bindValue(localISWTObservableValue32, localIObservableValue16,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER), null);
		IObservableValue localIObservableValue17 = BeansObservables.observeValue(this.m_updateJobModel,
				"replacementPartImageDescriptor");
		UpdateValueStrategy localUpdateValueStrategy24 = new UpdateValueStrategy();
		localUpdateValueStrategy24.setConverter(
				new ImageDescriptor2SizedImageConverter(this.m_updateJobModel, "replacementPartImageSize"));
		localDataBindingContext.bindValue(localISWTObservableValue32, localIObservableValue17,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER), localUpdateValueStrategy24);
		ISWTObservableValue localISWTObservableValue33 = SWTObservables.observeSize(this.m_replacementImageComposite);
		IObservableValue localIObservableValue18 = BeansObservables.observeValue(this.m_updateJobModel,
				"replacementPartImageSize");
		localDataBindingContext.bindValue(localISWTObservableValue33, localIObservableValue18, null,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER));
		localDataBindingContext.bindValue(this.m_replacementImageUpdateLayoutObserver, localIObservableValue16,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER), null);
		localDataBindingContext.bindValue(this.m_replacementImageUpdateLayoutObserver, localIObservableValue17,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER), null);
		ISWTObservableValue localISWTObservableValue34 = SWTObservables.observeText(this.m_replacementFindText, 24);
		IObservableValue localIObservableValue19 = BeansObservables.observeValue(this.m_updateJobModel,
				"replacementFindText");
		this.m_replacementFindTextBinding = localDataBindingContext.bindValue(localISWTObservableValue34,
				localIObservableValue19, null, new UpdateValueStrategy(UpdateValueStrategy.POLICY_ON_REQUEST));
		ISWTObservableValue localISWTObservableValue35 = SWTObservables.observeVisible(this.m_replacementGroup);
		IObservableValue localIObservableValue20 = BeansObservables.observeValue(this.m_updateJobModel,
				"replacementPartRequired");
		localDataBindingContext.bindValue(localISWTObservableValue35, localIObservableValue20, null, null);
		localDataBindingContext.bindValue(this.m_replacementChangeObservable, localIObservableValue14, null, null);
		localDataBindingContext.bindValue(this.m_replacementRequiredChangeObserver, localIObservableValue20, null,
				null);
		ISWTObservableValue localISWTObservableValue36 = SWTObservables
				.observeTooltipText(this.m_replacementInfoComposite);
		UpdateValueStrategy localUpdateValueStrategy25 = new UpdateValueStrategy();
		localUpdateValueStrategy25.setConverter(new Source2LabelConverter());
		localUpdateValueStrategy25.setAfterGetValidator(
				new ReplacementPartValidator(Messages.TargetPage_Val_ReplacementPartNotSet, this.m_updateJobModel));
		this.m_replacementPartChangeBinding = localDataBindingContext.bindValue(localISWTObservableValue36,
				localIObservableValue14, null, localUpdateValueStrategy25);
		ISWTObservableValue localISWTObservableValue37 = SWTObservables.observeEnabled(this.m_replacementGroup);
		localDataBindingContext.bindValue(localISWTObservableValue37, localIObservableValue6,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER), null);
		ISWTObservableValue localISWTObservableValue38 = SWTObservables.observeEnabled(this.m_replacementFindText);
		localDataBindingContext.bindValue(localISWTObservableValue38, localIObservableValue6,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER), null);
		ISWTObservableValue localISWTObservableValue39 = SWTObservables.observeEnabled(this.m_replacementFindButton);
		localDataBindingContext.bindValue(localISWTObservableValue39, localIObservableValue6,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER), null);
		ISWTObservableValue localISWTObservableValue40 = SWTObservables.observeText(this.m_inputLabelText);
		IObservableValue localIObservableValue21 = BeansObservables.observeValue(this.m_updateJobModel,
				"inputLabelText");
		localDataBindingContext.bindValue(localISWTObservableValue40, localIObservableValue21,
				new UpdateValueStrategy(UpdateValueStrategy.POLICY_NEVER), null);
		localDataBindingContext.bindValue(this.m_markupAllowedObservable, localIObservableValue6, null, null);
		return localDataBindingContext;
	}

	private void contributeChangeItem(Composite paramComposite) {
		this.m_changeGroupComposite = new Composite(paramComposite, 0);
		FontData localFontData1 = this.m_changeGroupComposite.getFont().getFontData()[0];
		this.m_changeGroupComposite.setFont(JFaceResources.getFontRegistry().getBold(localFontData1.getName()));
		GridLayout localGridLayout1 = new GridLayout(1, false);
		localGridLayout1.marginTop = 10;
		localGridLayout1.verticalSpacing = 0;
		localGridLayout1.marginWidth = 0;
		localGridLayout1.marginHeight = 0;
		localGridLayout1.horizontalSpacing = 0;
		this.m_changeGroupComposite.setLayout(localGridLayout1);
		GridData localGridData = new GridData(4, 4, true, true, 1, 1);
		localGridData.horizontalIndent = 5;
		this.m_changeGroupComposite.setLayoutData(localGridData);
		Label localLabel = new Label(this.m_changeGroupComposite, 0);
		FontData localFontData2 = localLabel.getFont().getFontData()[0];
		localLabel.setFont(JFaceResources.getFontRegistry().getBold(localFontData2.getName()));
		localLabel.setLayoutData(new GridData(16384, 16777216, true, false, 1, 1));
		localLabel.setText(Messages.TargetPage_Grp_ChangeObject);
		Composite localComposite1 = new Composite(this.m_changeGroupComposite, 0);
		GridLayout localGridLayout2 = new GridLayout(1, false);
		localGridLayout2.verticalSpacing = 0;
		localGridLayout2.marginWidth = 0;
		localGridLayout2.marginHeight = 0;
		localGridLayout2.horizontalSpacing = 0;
		localComposite1.setLayout(localGridLayout2);
		localComposite1.setLayoutData(new GridData(4, 4, true, true, 1, 1));
		Composite localComposite2 = new Composite(localComposite1, 0);
		localComposite2.setLayoutData(new GridData(4, 4, true, false, 1, 1));
		GridLayout localGridLayout3 = new GridLayout(3, false);
		localGridLayout3.marginLeft = 5;
		localGridLayout3.verticalSpacing = 0;
		localGridLayout3.marginWidth = 0;
		localGridLayout3.marginHeight = 0;
		localGridLayout3.horizontalSpacing = 0;
		localComposite2.setLayout(localGridLayout3);
		this.m_changeFindText = new Text(localComposite2, 2048);
		this.m_changeFindText.setToolTipText(Messages.WizardTargetPage2_changeFindText_toolTipText);
		this.m_changeFindText.setMessage(Messages.WizardTargetPage2_changeFindText_message);
		this.m_changeFindText.setLayoutData(new GridData(4, 16777216, true, false, 1, 1));
		this.m_changeFindText.addKeyListener(new KeyAdapter() {
			public void keyPressed(KeyEvent paramAnonymousKeyEvent) {
				if (paramAnonymousKeyEvent.keyCode == 13) {
					WizardTargetPage2.this.m_findChangeItemRevObservable.setValue("massupdate");
				}
			}
		});
		this.m_changeFindButton = new Button(localComposite2, 0);
		this.m_changeFindButton.setToolTipText(Messages.WizardTargetPage2_changeFindButton_toolTipText);
		this.m_changeFindButton.setImage(
				SWTResourceManager.getImage(WizardTargetPage2.class, "/com/teamcenter/rac/aif/images/find_16.png"));
		this.m_changeFindButton.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent paramAnonymousSelectionEvent) {
				WizardTargetPage2.this.m_findChangeItemRevObservable.setValue("massupdate");
			}
		});
		this.m_changeClearButton = new Button(localComposite2, 0);
		this.m_changeClearButton.setToolTipText(Messages.WizardTargetPage2_changeClearButton_toolTipText);
		this.m_changeClearButton.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent paramAnonymousSelectionEvent) {
				WizardTargetPage2.this.m_updateJobModel.setChangeObject(null);
			}
		});
		this.m_changeClearButton.setImage(SWTResourceManager.getImage(WizardTargetPage2.class, "/icons/clear_16.png"));
		this.m_changeInfoComposite = new Composite(localComposite1, 0);
		this.m_changeInfoComposite.setLayoutData(new GridData(4, 4, true, true, 1, 1));
		this.m_changeInfoComposite.setLayout(new GridLayout(1, false));
		this.m_changeLabelLabel = new Label(this.m_changeInfoComposite, 0);
		this.m_changeLabelLabel.setLayoutData(new GridData(4, 4, true, true, 1, 1));
		ScrolledComposite localScrolledComposite = new ScrolledComposite(this.m_changeInfoComposite, 768);
		localScrolledComposite.setLayoutData(new GridData(4, 4, true, true, 1, 1));
		localScrolledComposite.setExpandHorizontal(true);
		localScrolledComposite.setExpandVertical(true);
		this.m_changeDescriptionText = new Text(localScrolledComposite, 2122);
		this.m_changeDescriptionText.setToolTipText(Messages.WizardTargetPage2_changeDescriptionText_toolTipText);
		localScrolledComposite.setContent(this.m_changeDescriptionText);
		localScrolledComposite.setMinSize(this.m_changeDescriptionText.computeSize(-1, -1));
		this.m_bindingContext = initDataBindings();
	}

	private void contributeOperation(Composite paramComposite) {
		this.m_operationGroup = new Composite(paramComposite, 0);
		this.m_operationGroup.setLayoutData(new GridData(4, 4, true, true, 1, 1));
		GridLayout localGridLayout = new GridLayout(1, false);
		localGridLayout.marginLeft = 5;
		localGridLayout.verticalSpacing = 0;
		localGridLayout.marginWidth = 0;
		localGridLayout.marginHeight = 0;
		localGridLayout.horizontalSpacing = 0;
		this.m_operationGroup.setLayout(localGridLayout);
		Label localLabel = new Label(this.m_operationGroup, 0);
		localLabel.setLayoutData(new GridData(4, 4, true, false, 1, 1));
		FontData localFontData = localLabel.getFont().getFontData()[0];
		localLabel.setFont(JFaceResources.getFontRegistry().getBold(localFontData.getName()));
		localLabel.setText(Messages.TargetPage_Grp_OperationType);
		Composite localComposite = new Composite(this.m_operationGroup, 0);
		localComposite.setLayoutData(new GridData(4, 4, true, true, 1, 1));
		localComposite.setLayout(new GridLayout(2, false));
		this.m_operationCombo = new Combo(localComposite, 8);
		this.m_operationCombo.setToolTipText(Messages.WizardTargetPage2_operationCombo_toolTipText);
		this.m_operationCombo.setLayoutData(new GridData(16384, 128, false, false, 1, 1));
		String[] arrayOfString;
		int j = (arrayOfString = UpdateJobModel.OperationType.ORDERED_OPTYPE_NAMES).length;
		for (int i = 0; i < j; i++) {
			String localObject = arrayOfString[i];
			this.m_operationCombo.add((String) localObject);
		}
		this.m_operationDetailsText = new Text(localComposite, 840);
		Object localObject = new GridData(4, 4, true, true, 1, 1);
		((GridData) localObject).widthHint = 200;
		((GridData) localObject).heightHint = 50;
		this.m_operationDetailsText.setLayoutData(localObject);
		this.m_operationDetailsText.setEditable(false);
	}

	private void contributeReplacement(Composite paramComposite) {
		this.m_replacementGroup = new Composite(paramComposite, 0);
		GridLayout localGridLayout1 = new GridLayout(3, true);
		localGridLayout1.marginBottom = 2;
		localGridLayout1.marginTop = 5;
		localGridLayout1.marginLeft = 5;
		localGridLayout1.verticalSpacing = 0;
		localGridLayout1.marginWidth = 0;
		localGridLayout1.marginHeight = 0;
		localGridLayout1.horizontalSpacing = 0;
		this.m_replacementGroup.setLayout(localGridLayout1);
		this.m_replacementGroup.setLayoutData(new GridData(4, 4, true, true, 1, 1));
		this.m_inputLabelText = new Label(this.m_replacementGroup, 0);
		GridData localGridData = new GridData(16384, 16777216, false, false, 2, 1);
		localGridData.widthHint = 100;
		this.m_inputLabelText.setLayoutData(localGridData);
		this.m_inputLabelText.setText(Messages.TargetPage_Grp_Replacement);
		FontData localFontData = this.m_inputLabelText.getFont().getFontData()[0];
		this.m_inputLabelText.setFont(JFaceResources.getFontRegistry().getBold(localFontData.getName()));
		new Label(this.m_replacementGroup, 0);
		Composite localComposite1 = new Composite(this.m_replacementGroup, 0);
		GridLayout localGridLayout2 = new GridLayout(1, false);
		localGridLayout2.verticalSpacing = 0;
		localGridLayout2.marginWidth = 0;
		localGridLayout2.marginHeight = 0;
		localGridLayout2.horizontalSpacing = 0;
		localComposite1.setLayout(localGridLayout2);
		localComposite1.setLayoutData(new GridData(4, 4, true, true, 2, 1));
		Composite localComposite2 = new Composite(localComposite1, 0);
		localComposite2.setLayoutData(new GridData(4, 4, true, false, 1, 1));
		GridLayout localGridLayout3 = new GridLayout(2, false);
		localGridLayout3.marginLeft = 5;
		localGridLayout3.verticalSpacing = 0;
		localGridLayout3.marginWidth = 0;
		localGridLayout3.marginHeight = 0;
		localGridLayout3.horizontalSpacing = 0;
		localComposite2.setLayout(localGridLayout3);
		this.m_replacementFindText = new Text(localComposite2, 2048);
		this.m_replacementFindText.setToolTipText(Messages.WizardTargetPage2_replacementFindText_toolTipText);
		this.m_replacementFindText.setMessage(Messages.WizardTargetPage2_replacementFindText_message);
		this.m_replacementFindText.setLayoutData(new GridData(4, 16777216, true, false, 1, 1));
		this.m_replacementFindText.addKeyListener(new KeyAdapter() {
			public void keyPressed(KeyEvent paramAnonymousKeyEvent) {
				if (paramAnonymousKeyEvent.keyCode == 13) {
					WizardTargetPage2.this.m_findReplacementItemRevObservable.setValue(Boolean.valueOf(true));
				}
			}
		});
		this.m_replacementFindButton = new Button(localComposite2, 0);
		this.m_replacementFindButton.setToolTipText(Messages.WizardTargetPage2_replacementFindButton_toolTipText);
		this.m_replacementFindButton.setImage(
				SWTResourceManager.getImage(WizardTargetPage2.class, "/com/teamcenter/rac/aif/images/find_16.png"));
		this.m_replacementFindButton.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent paramAnonymousSelectionEvent) {
				WizardTargetPage2.this.m_findReplacementItemRevObservable.setValue(Boolean.valueOf(true));
			}
		});
		this.m_replacementInfoComposite = new Composite(localComposite1, 0);
		this.m_replacementInfoComposite.setLayoutData(new GridData(4, 4, true, true, 1, 1));
		GridLayout localGridLayout4 = new GridLayout(1, false);
		this.m_replacementInfoComposite.setLayout(localGridLayout4);
		this.m_replacementLabelLabel = new Label(this.m_replacementInfoComposite, 0);
		this.m_replacementLabelLabel.setLayoutData(new GridData(4, 4, true, true, 1, 1));
		ScrolledComposite localScrolledComposite = new ScrolledComposite(this.m_replacementInfoComposite, 768);
		localScrolledComposite.setLayoutData(new GridData(4, 4, true, true, 1, 1));
		localScrolledComposite.setExpandHorizontal(true);
		localScrolledComposite.setExpandVertical(true);
		this.m_replacementDescriptionText = new Text(localScrolledComposite, 2058);
		this.m_replacementDescriptionText
				.setToolTipText(Messages.WizardTargetPage2_replacementDescriptionText_toolTipText);
		localScrolledComposite.setContent(this.m_replacementDescriptionText);
		localScrolledComposite.setMinSize(this.m_replacementDescriptionText.computeSize(-1, -1));
		Composite localComposite3 = new Composite(this.m_replacementInfoComposite, 0);
		localComposite3.setLayout(null);
		localComposite3.setLayoutData(new GridData(4, 4, false, false, 1, 1));
		this.m_replacementAddToSolutionButton = new Button(localComposite3, 32);
		this.m_replacementAddToSolutionButton
				.setToolTipText(Messages.WizardTargetPage2_replacementAddToSolutionButton_toolTipText);
		this.m_replacementAddToSolutionButton.setBounds(0, 0, 200, 18);
		this.m_replacementAddToSolutionButton.setText(Messages.TargetPage_Chk_AddToSolutionFolder);
		this.m_replacementAddToOtherButton = new Button(localComposite3, 32);
		this.m_replacementAddToOtherButton
				.setToolTipText(Messages.WizardTargetPage2_replacementAddToOtherButton_toolTipText);
		this.m_replacementAddToOtherButton.setBounds(0, 0, 200, 18);
		this.m_replacementAddToOtherButton.setText(Messages.TargetPage_Chk_AddToOtherFolder);
		this.m_replacementImageComposite = new Composite(this.m_replacementGroup, 2048);
		this.m_replacementImageComposite.setLayoutData(new GridData(4, 4, true, true, 1, 1));
		GridLayout localGridLayout5 = new GridLayout(1, false);
		localGridLayout5.verticalSpacing = 0;
		localGridLayout5.marginWidth = 0;
		localGridLayout5.marginHeight = 0;
		localGridLayout5.horizontalSpacing = 0;
		this.m_replacementImageComposite.setLayout(localGridLayout5);
		this.m_replacementImageLabel = new Label(this.m_replacementImageComposite, 0);
		this.m_replacementImageLabel.setToolTipText(Messages.WizardTargetPage2_replacementImageLabel_toolTipText);
		this.m_replacementImageLabel.setLayoutData(new GridData(16777216, 16777216, true, true, 1, 1));
		this.m_replacementImageLabel
				.setImage(SWTResourceManager.getImage(WizardTargetPage2.class, "/icons/teamcenter_app_128.gif"));
	}

	private void contributeTarget(Composite paramComposite) {
		this.m_targetGroup = new Composite(paramComposite, 0);
		GridLayout localGridLayout1 = new GridLayout(3, true);
		localGridLayout1.marginBottom = 2;
		localGridLayout1.marginLeft = 5;
		localGridLayout1.marginTop = 5;
		localGridLayout1.verticalSpacing = 0;
		localGridLayout1.marginWidth = 0;
		localGridLayout1.marginHeight = 0;
		localGridLayout1.horizontalSpacing = 0;
		this.m_targetGroup.setLayout(localGridLayout1);
		this.m_targetGroup.setLayoutData(new GridData(4, 4, true, true, 1, 1));
		Label localLabel = new Label(this.m_targetGroup, 0);
		localLabel.setLayoutData(new GridData(16384, 16777216, false, false, 3, 1));
		FontData localFontData = localLabel.getFont().getFontData()[0];
		localLabel.setFont(JFaceResources.getFontRegistry().getBold(localFontData.getName()));
		localLabel.setText(Messages.TargetPage_Grp_Target);
		Composite localComposite1 = new Composite(this.m_targetGroup, 0);
		GridLayout localGridLayout2 = new GridLayout(1, false);
		localGridLayout2.verticalSpacing = 0;
		localGridLayout2.marginWidth = 0;
		localGridLayout2.marginHeight = 0;
		localGridLayout2.horizontalSpacing = 0;
		localComposite1.setLayout(localGridLayout2);
		localComposite1.setLayoutData(new GridData(4, 4, true, true, 2, 1));
		Composite localComposite2 = new Composite(localComposite1, 0);
		localComposite2.setLayoutData(new GridData(4, 4, true, false, 1, 1));
		GridLayout localGridLayout3 = new GridLayout(2, false);
		localGridLayout3.marginLeft = 5;
		localGridLayout3.verticalSpacing = 0;
		localGridLayout3.marginWidth = 0;
		localGridLayout3.marginHeight = 0;
		localGridLayout3.horizontalSpacing = 0;
		localComposite2.setLayout(localGridLayout3);
		this.m_targetFindText = new Text(localComposite2, 2048);
		this.m_targetFindText.setToolTipText(Messages.WizardTargetPage2_targetFindText_toolTipText);
		this.m_targetFindText.setMessage(Messages.WizardTargetPage2_targetFindText_message);
		this.m_targetFindText.setLayoutData(new GridData(4, 16777216, true, false, 1, 1));
		this.m_targetFindText.addSelectionListener(new SelectionAdapter() {
			public void widgetDefaultSelected(SelectionEvent paramAnonymousSelectionEvent) {
				WizardTargetPage2.this.m_findTargetItemRevObservable.setValue(Boolean.valueOf(true));
			}
		});
		this.m_targetFindButton = new Button(localComposite2, 0);
		this.m_targetFindButton.setToolTipText(Messages.WizardTargetPage2_targetFindButton_toolTipText);
		this.m_targetFindButton.setImage(
				SWTResourceManager.getImage(WizardTargetPage2.class, "/com/teamcenter/rac/aif/images/find_16.png"));
		this.m_targetFindButton.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent paramAnonymousSelectionEvent) {
				WizardTargetPage2.this.m_findTargetItemRevObservable.setValue(Boolean.valueOf(true));
			}
		});
		this.m_targetInfoComposite = new Composite(localComposite1, 0);
		this.m_targetInfoComposite.setLayoutData(new GridData(4, 4, true, true, 1, 1));
		GridLayout localGridLayout4 = new GridLayout(1, false);
		this.m_targetInfoComposite.setLayout(localGridLayout4);
		this.m_targetLabelLabel = new Label(this.m_targetInfoComposite, 0);
		this.m_targetLabelLabel.setLayoutData(new GridData(4, 16777216, true, true, 1, 1));
		ScrolledComposite localScrolledComposite = new ScrolledComposite(this.m_targetInfoComposite, 768);
		localScrolledComposite.setLayoutData(new GridData(4, 4, true, true, 1, 1));
		localScrolledComposite.setExpandHorizontal(true);
		localScrolledComposite.setExpandVertical(true);
		this.m_targetDescriptionText = new Text(localScrolledComposite, 2122);
		this.m_targetDescriptionText.setToolTipText(Messages.WizardTargetPage2_targetDescriptionText_toolTipText);
		localScrolledComposite.setContent(this.m_targetDescriptionText);
		localScrolledComposite.setMinSize(this.m_targetDescriptionText.computeSize(-1, -1));
		Composite localComposite3 = new Composite(this.m_targetInfoComposite, 0);
		localComposite3.setLayout(null);
		localComposite3.setLayoutData(new GridData(4, 4, false, false, 1, 1));
		this.m_targetAddToProblemFolderButton = new Button(localComposite3, 32);
		this.m_targetAddToProblemFolderButton
				.setToolTipText(Messages.WizardTargetPage2_targetAddToProblemFolderButton_toolTipText);
		this.m_targetAddToProblemFolderButton.setBounds(0, 0, 200, 18);
		this.m_targetAddToProblemFolderButton.setText(Messages.TargetPage_Chk_AddToProblemFolder);
		this.m_targetAddToOtherFolderButton = new Button(localComposite3, 32);
		this.m_targetAddToOtherFolderButton
				.setToolTipText(Messages.WizardTargetPage2_targetAddToOtherFolderButton_toolTipText);
		this.m_targetAddToOtherFolderButton.setBounds(0, 0, 200, 18);
		this.m_targetAddToOtherFolderButton.setText(Messages.TargetPage_Chk_AddToOtherFolder);
		this.m_targetImageComposite = new Composite(this.m_targetGroup, 2048);
		this.m_targetImageComposite.setLayoutData(new GridData(4, 4, true, true, 1, 1));
		GridLayout localGridLayout5 = new GridLayout(2, false);
		localGridLayout5.verticalSpacing = 0;
		localGridLayout5.marginWidth = 0;
		localGridLayout5.marginHeight = 0;
		localGridLayout5.horizontalSpacing = 0;
		this.m_targetImageComposite.setLayout(localGridLayout5);
		this.m_targetImageLabel = new Label(this.m_targetImageComposite, 0);
		this.m_targetImageLabel.setToolTipText(Messages.WizardTargetPage2_targetImageLabel_toolTipText);
		this.m_targetImageLabel.setLayoutData(new GridData(16777216, 16777216, true, true, 1, 1));
		this.m_targetImageLabel
				.setImage(SWTResourceManager.getImage(WizardTargetPage2.class, "/icons/teamcenter_app_128.gif"));
	}

	public class IC_MarkupAllowedChangeObservable extends AbstractModelObservable {
		public IC_MarkupAllowedChangeObservable() {
		}

		public void doSetValue(Object paramObject) {
			IWizardContainer localIWizardContainer = WizardTargetPage2.this.getContainer();
			if (localIWizardContainer != null) {
				localIWizardContainer.updateButtons();
			}
		}
	}
}
